package com.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.blog.bean.Praise;

/**
 * @className: IPraise
 * @description: 
 * @author: HCl
 * @createTime: 2020年5月26日 下午8:21:21
 */
@Repository
@Mapper

public interface IPraiseDao {
	
	public int selectBlogPraiseByBlogId(Integer blogid);
	
	public int selectSharePraiseByShareId(Integer shareid);
	
	public List<Praise> selectAllBlogPraiseByUserId(Integer userid);
	
	public List<Praise> selectAllSharePraiseByUserId(Integer userid);
	
	public int addBlogPraise(Praise praise);
	
	public int addSharePraise(Praise praise);
	
	public int deleteBlogPraiseByUserIdAndBlogId(Integer userid,Integer blogid);
	
	public int deleteSharePraiseByUserIdAndShareId(Integer userid,Integer shareid);

}
